/* Ejercicio 4.14
   ejer4_14.c */
#include <stdio.h>

/* funcion main, el programa inicia aca */
int main( void )
{
    int x, factorial, i;

    for ( x = 1; x <= 20; x++ ) { /* The int value doesn't support larger numbers than 16 factorial O.o*/
        factorial = 1;

        for ( i = 1; i <= x; i++ ) {
            factorial *= i;
        }

        printf( "%5d!%15d\n", x, factorial );
    }

	return 0;
} /* fin de la funcion main */
